<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>v-model修饰符</title>
	<style>
		input{
			width: 500px;
			height: 60px;
			outline: none;
		}
	</style>
</head>
<body>
	<div id="box">
		<input type="text" v-model.lazy="str">
		<h2>{{  str }}</h2>
		<input type="text" v-model.number="str2">
		<h2> {{str2}} </h2>
		<input type="text" v-model.trim="str3">
		<h2> {{str3.length}} </h2>
	</div>
	<script src="vue.js"></script>
	<script>
		const vm=new Vue({
			el:'#box',
			data:{
				str:'爱上对方过后就哭了',
				str2:10,
				str3:'爱上对方过后就哭了'
			}
		})
	</script>

</body>
</html>